using Avalonia;
using Avalonia.Controls;
using Avalonia.Interactivity;
using Avalonia.Markup.Xaml;

namespace LayoutViewer.Views
{
    public partial class MainWindow : Window
    {
        public static Window Instance { get; internal set; }
        public MainWindow()
        {
            this.ExtendClientAreaToDecorationsHint = true;
            this.ExtendClientAreaTitleBarHeightHint = -1;
            this.ExtendClientAreaChromeHints = Avalonia.Platform.ExtendClientAreaChromeHints.NoChrome;
            InitializeComponent();
#if DEBUG
            this.AttachDevTools();
#endif
            Instance = this;
        }

        private void InitializeComponent()
        {
            AvaloniaXamlLoader.Load(this);
        }

        private void Refresh_Tapped(object sender, RoutedEventArgs e)
        {
            new Config().ShowDialog(this);
            //MainWindow.Instance.Close();
        }
        private void Tapped(object sender, RoutedEventArgs e)
        {


        }


    }
}
